<?php require_once ('../common/check.php');  //权限校验 ?>
<?php
    if(isset( $_GET['exit'])){
        //1.开启session机制
        session_start();
        //2.删除session
        unset($_SESSION['user']);
        //3.跳转到登录页面
        header('location: login.php');
    }
?>

<header>
    <h1>网站后台管理系统</h1>
    <p>
        <a href="../index.php"><span class="icon home"></span>博客首页</a>
        <a href="top.php?exit='exit'"><span class="icon quit"></span>安全退出</a>
    </p>
</header>